package com.warm.base.design.b_state;

/**
 * @Date: 2019/11/27 14:48
 * @Author: LChuang
 * @Description:
 */
public class Context {
    State state;

    public Context(State state){
        //定义Context初始状态
        super();
        this.state = state;
    }

    public void request(){
        state.handle(this);
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }
}
